﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DebugTools
{
    class ELoad_Chroma:ELoad
    {

        public ELoad_Chroma(string szInsID):base(szInsID)
        {
            _szType = "Chroma,6314";
            //Chroma,6314A,6314A0008986,3.02,11,0
        }

        public override double MeasChannelVolt(string Chan)
        {
            _szCmd = "CHAN " + Chan + ";MEAS:VOLT?\n";
            return base.MeasChannelVolt(Chan);
        }

        public override double MeasChannelCurr(string Chan)
        {
            _szCmd = "CHAN " + Chan + ";MEAS:CURR?\n";
            return base.MeasChannelCurr(Chan);
        }

        public void SetChannelCurr(string chan, string curr)
        {
            _szCmd = "CHAN " + chan + ";:MODE CCH;CURR:STAT:L1 " + curr;
            this.Write(_szCmd);
            _szCmd = "LOAD ON";
            this.Write(_szCmd);
        }
    }
}
